﻿using DocumentFormat.OpenXml.Wordprocessing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace intelliEssay.Interop
{
    /// <summary>
    /// A style comparer
    /// </summary>
    public class StyleComparer : IEqualityComparer<Style>
    {
        public int GetHashCode(Style style)
        {
            return style.StyleId.Value.GetHashCode();
        }
        public bool Equals(Style A, Style B)
        {
            return A.StyleId.Value == B.StyleId.Value;
        }
    }
}
